package com.shoponline.dao;

import java.io.Serializable;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 * DAO的Hibernate实现
  */

public class DAOImpl extends HibernateDaoSupport implements DAO{

	@Override
	public void save(Object object) {
		
		this.getHibernateTemplate().save(object);
		
	}

	@Override
	public void update(Object object) {
		
		this.getHibernateTemplate().update(object);
		
	}

	@Override
	public void delete(Object object) {
		
		this.getHibernateTemplate().delete(object);
		
	}

	
	@Override
	public Object load(Class clazz, Serializable id) {
		
		return this.getHibernateTemplate().load(clazz, id);
		
	}

	
	
}
